package com.zm.pojo;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.NumberFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.util.Date;

public class AppVersion {
    //主键id
    private Long id;
    //appId（来源于：app_info表的主键id）
    private Long appid;
    //版本号
    @NotNull(message = "版本号不能为空")
    private String versionno;
    //版本介绍
    private String versioninfo;
    //发布状态（来源于：data_dictionary，1 不发布 2 已发布 3 预发布）
    private Long publishstatus;

    //下载链接
    private String downloadlink;
    //版本大小（单位：M）

   @Min(value =0,message = "只能是最小值为0的数字")
    private BigDecimal versionsize;
    //创建者（来源于dev_user开发者信息表的用户id）
    private Long createdby;
    //创建时间
    private Date creationdate;
    //更新者（来源于dev_user开发者信息表的用户id）
    private Long modifyby;
    //最新更新时间
    private Date modifydate;
    //apk文件的服务器存储路径
    private String apklocpath;
    //上传的apk文件名称
    private String apkfilename;
    private String publisthstatusname;
    private String a_modi;

    public String getA_modi() {
        return a_modi;
    }

    public void setA_modi(String a_modi) {
        this.a_modi = a_modi;
    }

    private AppInfo appInfo;



    public AppInfo getAppInfo() {
        return appInfo;
    }

    public void setAppInfo(AppInfo appInfo) {
        this.appInfo = appInfo;
    }

    public String getPublisthstatusname() {
        return publisthstatusname;
    }

    public void setPublisthstatusname(String publisthstatusname) {
        this.publisthstatusname = publisthstatusname;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAppid() {
        return appid;
    }

    public void setAppid(Long appid) {
        this.appid = appid;
    }

    public String getVersionno() {
        return versionno;
    }

    public void setVersionno(String versionno) {
        this.versionno = versionno == null ? null : versionno.trim();
    }

    public String getVersioninfo() {
        return versioninfo;
    }

    public void setVersioninfo(String versioninfo) {
        this.versioninfo = versioninfo == null ? null : versioninfo.trim();
    }

    public Long getPublishstatus() {
        return publishstatus;
    }

    public void setPublishstatus(Long publishstatus) {
        this.publishstatus = publishstatus;
    }

    public String getDownloadlink() {
        return downloadlink;
    }

    public void setDownloadlink(String downloadlink) {
        this.downloadlink = downloadlink == null ? null : downloadlink.trim();
    }

    public BigDecimal getVersionsize() {
        return versionsize;
    }

    public void setVersionsize(BigDecimal versionsize) {
        this.versionsize = versionsize;
    }

    public Long getCreatedby() {
        return createdby;
    }

    public void setCreatedby(Long createdby) {
        this.createdby = createdby;
    }

    public Date getCreationdate() {
        return creationdate;
    }

    public void setCreationdate(Date creationdate) {
        this.creationdate = creationdate;
    }

    public Long getModifyby() {
        return modifyby;
    }

    public void setModifyby(Long modifyby) {
        this.modifyby = modifyby;
    }

    public Date getModifydate() {
        return modifydate;
    }

    public void setModifydate(Date modifydate) {
        this.modifydate = modifydate;
    }

    public String getApklocpath() {
        return apklocpath;
    }

    public void setApklocpath(String apklocpath) {
        this.apklocpath = apklocpath == null ? null : apklocpath.trim();
    }

    public String getApkfilename() {
        return apkfilename;
    }

    public void setApkfilename(String apkfilename) {
        this.apkfilename = apkfilename == null ? null : apkfilename.trim();
    }
}